package cn.hchaojie.boot.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.hchaojie.boot.domain.User;
import cn.hchaojie.boot.mapper.UserMapper;
import cn.hchaojie.boot.service.UserService;

@Service
public class UserServiceImpl implements UserService {
	
	private static final Logger logger = LoggerFactory.getLogger(UserServiceImpl.class);

	@Autowired
	private UserMapper mapper;

	@Override
	public void register(User user) {
		mapper.insert(user);
	}
}
